// P1817 write by cn_ryh